/* 
 * File:   XpackHandler.h
 * Author: minaev
 *
 * Created on 9 Ноябрь 2013 г., 14:05
 */

#ifndef XPACKHANDLER_H
#define	XPACKHANDLER_H
#include <vector>

#include "XshareMem.h"
#include "XbeeContainer.h"
#include "XUDPShareMem.h"
#include "XbeeIf.h"
#include "XpackDetector.h"


class XpackHandler {
public:
    XpackHandler(XbeeContainer* xcont,XUDPShareMem* udpShmem);
    virtual ~XpackHandler();
    void procPack(Xpack* pack);
    void addDetector(const pXpackDetector detector);
private:
    XbeeContainer* xcont;
    XUDPShareMem* udpShmem;
    std::vector<pXpackDetector> detectors;
};

#endif	/* XPACKHANDLER_H */

